<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../utils/flexible.js"></script>
    <script src="../utils/getUrlParams.js"></script>
    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
    <link rel="stylesheet" href="../css/base.css">
    <link rel="stylesheet" href="../css/discountproductdetails.css">
</head>
<body>
    
    <div class="header">
        <a href="./moneyctrl.html"> <
            </a>
                <span>省钱控-最新优惠</span>
                <img src="../assets/imgs/header_app.png" alt="">
    </div>

    <div class="contain">
        <h4>didongduancposjdsa</h4>
        <div class="zi">
            <b>jidongsh | angchen</b>
            <i>xiaobain / yanhuo</i>
        </div>
        <div class="main">
            <img src="../assets/imgs/ic_coudanpin.png" alt="">
            <span>
                海天的金标生抽酱油，采用了非转基因大豆以及小麦发酵而成，而自然鲜的口感是有些鲜甜鲜甜的感觉，非常适合用来作为日常炒菜用的调味料，当然也能用作白切系列的蘸酱调料，相信吃过美味鲜的慢友们都了解的。
目前京东商城移动端售价10.9元，不错的凑单品，刚需可入，规格1.28L。
            </span>
        </div>
        <img class="img2" src="../assets/imgs/ic_coudanpin.png" alt="">
        <ul>
            <li>北京 <span>诱惑</span></li>
            <li>北京 <span>诱惑</span></li>
            <li>北京 <span>诱惑</span></li>
            <li>北京 <span>诱惑</span></li>
        </ul>
    </div>

    <div class="bottom">
        <p>前往购买</p>
        <img src="../assets/imgs/mmbweixin2.png" alt="">
    </div>

    <div class="insert">

    </div>


    <div class="footer">
        <div class="more">
            <a>更多优惠信息>></a>
        </div>
        <div class="chart">
            <span>品牌排行</span>
        </div>
        <ul>
            <li>登入</li>
            <li>注册</li>
            <li><a href="#top">返回顶部</a></li>
        </ul>
        <p>手机APP下载 慢慢买手机版 -- 掌上比价平台</p>
        <p>m.manmanbuy.com</p>
    </div>

    <script>
        console.log(location.href);
        let href = getUrlParams(location.href);
        $.ajax({
            url:"http://chst.vip:1234/api/getmoneyctrlproduct",
            data:{
                productid:href.productid
            }
        }).then(res=>{
            // console.log(res.result[0]);
            creatEl(res.result[0])
        })

        function creatEl(data) {
            let html = `
            <h4>${data.productName}</h4>
            <div class="zi">
                <b>${data.productFrom} | ${data.productTime} </b>
                <i>${data.productTips}</i>
            </div>
            <div class="main">
                ${data.productImgSm}
                <span> ${data.productInfo2}${data.productInfo1} </span>
            </div>
            ${data.productImgSm}
            ${data.productCity}
            `;
            $(".contain").html(html);
            $(".insert").html(data.productComment)
        }
    </script>
</body>
</html>